package com.jakx.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ProcessMapper {

    @Results(id = "processMapper", value = {
            @Result(column = "id", property = "id"),
            @Result(column = "process_id", property = "process_id"),
            @Result(column = "node_id", property = "node_id"),
            @Result(column = "node_status", property = "node_status"),
            @Result(column = "create_time", property = "create_time")
    })

    @Select("select * from process")
    List<ProcessPojo> getAll();
}
